package com.cmower.baeldung.oop;

public class Pig {
    private String color;

    protected String name;

private int age;

public int getAge() {
    return age;
}

public void increaseAge() {
    this.age++;
}

public String getColor() {
    return color;
}

public void setColor(String color) {
    this.color = color;
}

    public Pig(String color) {
        this.color = color;
    }

    public Pig() {
    }

    public void eat() {
        System.out.println("吃");
    }
}
